package dryven.codegen.asm;

import java.util.Stack;

public abstract class TempValuePreparer {
	
	private Stack<TempValue> _values = new Stack<TempValue>();
	private MethodBuilder _builder;
	
	public TempValuePreparer(MethodBuilder builder) {
		super();
		_builder = builder;
	}

	public void pushParameter(TempValue v) {
		_values.push(v);
	}
	
	public abstract void addValues();

	public Stack<TempValue> getValues() {
		return _values;
	}
	
	public MethodBuilder getBuilder() {
		return _builder;
	}
}
